class GroupMemberList {
  String? msg;
  int? code;
  List<GroupMemberListData>? data;

  GroupMemberList({this.msg, this.code, this.data});

  GroupMemberList.fromJson(Map json) {
    msg = json['msg'];
    code = json['code'];
    if (json['data'] != null) {
      data = <GroupMemberListData>[];
      json['data'].forEach((v) {
        data!.add(GroupMemberListData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['msg'] = msg;
    data['code'] = code;
    if (this.data != null) {
      data['data'] = this.data?.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class GroupMemberListData {
  MemberEaseGroup? memberEaseGroup;
  int? count;

  GroupMemberListData({this.memberEaseGroup, this.count});

  GroupMemberListData.fromJson(Map<String, dynamic> json) {
    memberEaseGroup = json['memberEaseGroup'] != null
        ? MemberEaseGroup.fromJson(json['memberEaseGroup'])
        : null;
    count = json['count'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    if (memberEaseGroup != null) {
      data['memberEaseGroup'] = memberEaseGroup!.toJson();
    }
    data['count'] = count;
    return data;
  }
}

class MemberEaseGroup {
  String? searchValue;
  String? createBy;
  String? createTime;
  String? updateBy;
  String? updateTime;
  String? remark;
  String? id;
  String? groupId;
  String? groupName;
  int? membersonly;
  int? allowinvites;
  int? maxusers;
  String? owner;
  int? isMute;
  int? isPublic;
  String? description;
  String? custom;
  String? groupExt;
  String? groupUrl;
  String? updateUser;
  int? delFlag;
  bool isChose = false;

  MemberEaseGroup(
      {this.searchValue,
      this.createBy,
      this.createTime,
      this.updateBy,
      this.updateTime,
      this.remark,
      this.id,
      this.groupId,
      this.groupName,
      this.membersonly,
      this.allowinvites,
      this.maxusers,
      this.owner,
      this.isMute,
      this.isPublic,
      this.description,
      this.custom,
      this.groupExt,
      this.groupUrl,
      this.updateUser,
      this.delFlag,
      this.isChose = false});

  MemberEaseGroup.fromJson(Map<String, dynamic> json) {
    searchValue = json['searchValue'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    remark = json['remark'];
    id = json['id'];
    groupId = json['groupId'];
    groupName = json['groupName'];
    membersonly = json['membersonly'];
    allowinvites = json['allowinvites'];
    maxusers = json['maxusers'];
    owner = json['owner'];
    isMute = json['isMute'];
    isPublic = json['isPublic'];
    description = json['description'];
    custom = json['custom'];
    groupExt = json['groupExt'];
    groupUrl = json['groupUrl'];
    updateUser = json['updateUser'];
    delFlag = json['delFlag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['searchValue'] = searchValue;
    data['createBy'] = createBy;
    data['createTime'] = createTime;
    data['updateBy'] = updateBy;
    data['updateTime'] = updateTime;
    data['remark'] = remark;
    data['id'] = id;
    data['groupId'] = groupId;
    data['groupName'] = groupName;
    data['membersonly'] = membersonly;
    data['allowinvites'] = allowinvites;
    data['maxusers'] = maxusers;
    data['owner'] = owner;
    data['isMute'] = isMute;
    data['isPublic'] = isPublic;
    data['description'] = description;
    data['custom'] = custom;
    data['groupExt'] = groupExt;
    data['groupUrl'] = groupUrl;
    data['updateUser'] = updateUser;
    data['delFlag'] = delFlag;
    return data;
  }
}
